Skip to content

Remove orphan hack for Commits.QueryBy() #366

Merged
nulltoken merged 2 commits into
libgit2:vNextfrom
dahlbyk:CommitLogOrphanHEAD
Mar 17, 2013
Merged

Remove orphan hack for Commits.QueryBy() #366
nulltoken merged 2 commits into
libgit2:vNextfrom
dahlbyk:CommitLogOrphanHEAD

Conversation

@dahlbyk

@dahlbyk dahlbyk commented Mar 16, 2013

Copy link
Copy Markdown
Member

Related: #30, #355

This seems like a more reliable way to support any empty commit list since HEAD on orphan branches.

d31afcd includes a breaking change to handling for Since = "refs/remotes/master" that I think is the right thing to do: the branch doesn't exist, so we shouldn't go out of our way in this case to make it behave as if it does.

That said, if I'm on the wrong side of the "orphan branch as semi-real reference but only for CommitLog" issue, e6dbc3a makes the behavior depend on the current HEAD ref rather than hard-coded to master.

/cc @tclem @jamill @nulltoken

@nulltoken
nulltoken merged commit e6dbc3a into libgit2:vNext Mar 17, 2013
@nulltoken

Copy link
Copy Markdown
Member

Neat. Thanks a thousand times! 💖

@jamill

jamill commented Mar 18, 2013

Copy link
Copy Markdown
Member

@dahlbyk Thanks for taking care of this!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants